
#ifndef _ICOMBOBOARD_H_
#define _ICOMBOBOARD_H_

#include <BImage>
#include <BComboBox>
#include <BScrollBar>

namespace BWE
{
	class member_BComboBox;
	class IComboBoard : public BWidget
	{
	public:
		IComboBoard(member_BComboBox& com_member, BComboBox* parent);
		~IComboBoard();

		void freshItemRects();

	protected:
		virtual void focusEvent(const BFocusEvent& focusEvent);
		virtual void keyDownEvent(const BKeyEvent& keyEvent);

		virtual void showEvent(const BEvent& showEvent);
		virtual void paintEvent(const BEvent& event);

		virtual void mouseEnterEvent(const BMouseEvent& mouseEvent);
		virtual void mouseLeaveEvent(const BMouseEvent& mouseEvent);

		virtual void mouseClickEvent(const BMouseEvent& mouseEvent);
		virtual void mouseMoveEvent(const BMouseEvent& mouseEvent);
		virtual void mouseWheelEvent(const BMouseEvent& mouseEvent);

	public:
		BComboBox*			combox;
		member_BComboBox&	member;
		BScrollBar*			vScrollBar;
		int					hoveredIndex;
		int					pressedIndex;
		BSize				totalSize;
	};
}
#endif
